package com.imeth.cms;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * Created by peter on 12/24/2015.
 */
public class Media {

    private Integer id;

    @NotNull(message = "媒体名称不能为空")
    private String name;

    @NotNull(message = "媒体地址不能为空")
    private String url;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
